import request from '@/utils/request'

// 查询教体局信息列表
export function listBureau(query) {
  return request({
    url: '/regulatory/bureau/list',
    method: 'get',
    params: query
  })
}

// 查询教体局信息列表
export function allBureau(query) {
  return request({
    url: '/regulatory/bureau/all',
    method: 'get',
    params: query
  })
}

// 查询教体局信息详细
export function getBureau(id) {
  return request({
    url: '/regulatory/bureau/' + id,
    method: 'get'
  })
}

// 新增教体局信息
export function addBureau(data) {
  return request({
    url: '/regulatory/bureau',
    method: 'post',
    data: data
  })
}

// 修改教体局信息
export function updateBureau(data) {
  return request({
    url: '/regulatory/bureau',
    method: 'put',
    data: data
  })
}

// 删除教体局信息
export function delBureau(id) {
  return request({
    url: '/regulatory/bureau/' + id,
    method: 'delete'
  })
}
